package com.zhanghe.study.design_pattern.state_pattern;

/**
 * 状态模式
 * @author zh
 * @date 2022/10/17 11:10
 */
public class Main {
    public static void main(String[] args) {
        IState state = new ConcreteStateA();

        Context context = new Context();
        context.setState(state);

        context.request("run");
    }
}
